﻿<!DOCTYPE html>
    <html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title>慢慢做</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="/css/layui.css">
    <link rel="stylesheet" href="/css/site.css">
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
<!--导航条-->
<nav>
    <ul class="layui-nav">
        <li class="layui-nav-item layui-this"><a href="/">Home</a></li>
        <li class="layui-nav-item"><a href="/news">新闻</a></li>
        <li class="layui-nav-item"><a href="http://106.14.33.202:81">博客</a></li>
<!--        <li class="layui-nav-item"><a href="/logs">日志</a></li>-->
        <li class="layui-nav-item">
            <a href="javascript:;">星座</a>
        </li>
        <li class="layui-nav-item">
            <a href="javascript:;">解决方案</a>
            <dl class="layui-nav-child">
                <dd><a href="">移动模块</a></dd>
                <dd><a href="">后台模版</a></dd>
                <dd class="layui-this"><a href="">选中项</a></dd>
                <dd><a href="">电商平台</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item"><a href="">社区</a></li>
    </ul>
</nav>
<?=$this->getContent()?>
<script src="/js/audio.js"></script>
<audio hidden id='audioElement' onended="playAudio('audioElement')"></audio>
</body>
<script>
    playAudio('audioElement');
    var href = window.location.href;
    if (href.indexOf('blog')>0) {
        $('#nav-blogs').addClass('active');
    } else if (href.indexOf('log')>0) {
        $('#nav-logs').addClass('active');
    } else {
        $('#nav-home').addClass('active');
    }
</script>
</html>